package com.sq.partner.manager.dao;

import java.sql.SQLException;
import java.util.List;

import com.sq.partner.manager.mybatis.model.TradPlanBase;
import com.sq.partner.manager.util.Page;

public interface IGatewayTradPlanBaseDao  extends BaseDao {

	TradPlanBase queryTradPlanBase(TradPlanBase tradPlanBase) throws SQLException ;

	TradPlanBase findMaxTradPlanCodebyPlanCode(TradPlanBase tradplanbase) throws SQLException ;

	void savetradplanbase(TradPlanBase tradplanbase)  throws Exception;

	Page<TradPlanBase> queryTradPlanBasePage(Page<TradPlanBase> page,
			String tradProdCode) throws SQLException;

	void deleteTradPlanBase(TradPlanBase tradPlanBase)  throws Exception;

	void updateTradPlanBase(TradPlanBase tradplanbase)  throws Exception;

	TradPlanBase queryTradPlanBaseByCode(String tradPlanCode) throws SQLException ;

	public void updateTradPlanBaseAmount(TradPlanBase tradplanbase) throws Exception;
	
	public List<TradPlanBase> queryTradPlanBaseInfoByPlanNo(String polNo) throws SQLException;
}
